#include "stopthread.h"
#include <QThread>
#include <QDebug>

StopThread::StopThread(QObject *parent) : QObject{parent} {
    connect(this, &StopThread::start, this, &StopThread::onStart);
}

void StopThread::onStart() {
    QThread::msleep(2000);
    emit this->stop();
    qDebug() << "StopThread::onStart() end";
}
